fix #1753 by making ObjectArray covariant