Updated entity.fetch

Added if statement to throw an error if type === undefined. Previously, if no type was passed to createEntity(), the SDK would create an 'undefineds' collection.

Also, type if required for all crud operations, so it makes sense to enforce it in fetch.