Environment: add #parse_flags, #parse_flags!, and #merge_flags