Fix for abstract base types with open generic type with no constraint

not working correctly. fixes #313. Thanks @jtheuer!