fix to key bug for new array and dict helper methods