added array_index attribute that helps with generating forms of arrays.
gen_header rewritten to be push-compliant
made table elements extendable by child classes.