Use more consistent naming in reflection extension

Specifically, use W_<PHP class name> and k_<PHP class name> everywhere
it applies.