[ticket/11201] Remove type related code from build_insert_sql_array()

PHPBB3-11201
[ticket/11201] Add visibility to methods

PHPBB3-11201