state: ParseTag now returns interface ids

Instead of assuming that all collection ids will be strings, they are now returned as interface{}. This is required to support subdocument style document ids (coming soon).