don't fail on arrays with 0 or '' as key in getFlatKeyNames
closes #757