added a cache for method references

now setting classes to interfaces if we have interface invocations on phantom classes