Let form/page_selector handle array names

Fixed selectors and removed square brackets from name to allow events
to work properly.
Fixes #1295