fixed some inheritence related problems
scala generator can now translate the blocks examples, generating actual scala code