Added support for abstract classes that don't have a parameterless constructor