Fixing multi-select-hash for non-arrays and adding more test cases for literals