Fix up python reference handling; enable coordinate and ell matrix types