Added a workaround for abstract models not being handled correctly. See issue #123 for details.