[ticket/11201] Move preparation of hidden fields to type class

PHPBB3-11201
[ticket/11201] Move custom template variable assignment to type class

PHPBB3-11201