univalue: remove unused methods getArray, getObject