Fix build_sid_msg_map() and snort_load_rules_map() to check arg type.