added type to BaseReference
added missing spec for new type attribute
Merge pull request #167 from verifyvalid/master

added type to BaseReference