fixed bug where BoolConstants and NullConstants were not initialized
fixed bug where we could not find the correct index of a member variable for subclasses
refactored emit method for call
fixed bug with not calling superclass methods properly from inside a class