updated csv_to_array helper to allow specifying where the header row starts and the length value
Fix for issue #275 regarding the toggle field type not working with keyval field types