Add "assert" function to apply.awk and detect keys without sections
Fix rule order in apply.awk