[#2103] Merged changes in svn refs 5529 and 5531 into rsModAVUMetadata.cpp. Slight restructure to allow checkModArgType to be called from both the database plugins and the iRODS core.