fixed ActiveRow::toArray [Closes #970] [Closes #971]