Without this fix some packages don't get ActsAsArtifact methods, although we depend on all of them having a spec (specifically lines 151-154). This code passes on 1.8.6 since the type method is an alias for class, breaks on 1.9.1 since the type method no longer exists for Object.