Update compute.read to also return constructor functions. Adding another test for #1261