added function to determine if type is a numeric or an array, resolving #2
Fix issue #1 (add tag to dict should not accept "" as name)