fix numeric & boolean & float keys in array

Reopened PR of #878