Turned col- and rowCollapse() and col- and rowTabulates() into plain R functions (were S3)