Fix parameter iteration across inheritence (#137)