several object parsing improvements

- returning nil when output string is empty or if the operation type is unsupported
- switching to immutable arrays for return value of internal parsing methods