Fixes the build on 1.8.7 where method names are returned as strings