'type' probably should be renamed to something else, since it overloads the builtin 'type'. But that was there previously, so. :)