BoxingVisitor: refactored method to CodegenUtil
Fix for #1476: method ref to Attribute.get

Consider erased primaries in method references
Test for #1476: method ref to Attribute.get