Added referenceMany() and improved association updating.