Fixing #1073: the new apply_colocated and async_colocated functions lead to automatic registered functions