Small refactoring.
Added test for assigning a field to a block or function.
Added test for handling constructor parameters when extending a class.