Fixed an issue with alignments in TableFormatGenerator

Alignments are now identified by property name, not by psoition, as it
can be arbitrary. Also it's now robust against different objects types,
so an alignment IndexOutOfRange exception won't appear.
Merge pull request #306 from sburnicki/ft_fix

Fixed an issue with alignments in TableFormatGenerator