Merge pull request #145 from mbebenita/master

More bug fixes.
Test case for calling inherited method from the constructor
Fix array key iteration bug.