Change lookup methods to use the Meta class to get allInstances.

This is because it is not possible to call the static allInstances on interfaces.