provide a _refs field in entity_state objects to hold refs

consider the following code snippet:

def make_latent(...):
    view = ... # construct view
    return bind(initialize(...), view)

at the C level, bind implementations will most likely store references
to the C level representation of view, but we need the python level
representations to also store refs to prevent view from being GC-ed