Make consistent use of PersistentVector instead of Vector - closes #4