Fixed core to ensure Rangy object is always returned by factory