Added pg-specific array-based tags.

some fixes to controllers too.