Fix wrong reference to record data in 'fct_insert_record'
New 'fct_transform_records_input()' to make new/edit records input usable
New *_is_* functions for checking a record's or account's type
Apply usage of newly created functions in b7f6c32