Allow functions in get_in/2 and get_and_update_in/3 (#2470)