Handle static vs non-static methods and fix valueOf() semantics