And update Node's resource ref deserialization to match Python. Also, fixed a bug in Python resource ref deserialization that I noticed.