Fix field dereference when multiple instances of a class exist. Fixes #77