Fixed bug allowing squareTemplates to be inputted

This resulted in a crash, I never really looked at the cause, but it was
almost certainly because it couldn't all be stored in the int metadata