Added tagType option for lightweight/annotated/signed tags.
Fixed thrown error on unrecognized tag type.