improve Reflection.resolve, Reflection.getFunctionAttribute