Fixed accidental missuse of $className variable in classmethods parser

$className variable (line 13) is used as cache key, usage in method parameter parsing (line 36) caused fatal error and disabled caching.