Cleaned up parse_ifs-function and added dotkey_to_objkey-function.