CellR: fix subtle issues in close() and openBytes

close() now clears all variables, and openBytes now does proper
parameter checking.  The former may help with the problem of incorrect
pixel data when importing certain CellR datasets into OMERO (see PR 529).