New xt function to check and add comment types.  

Required for Quality extension package.  Adding to xtuple project so it can be used elsewhere