Various enhancements and fixes

- Constrained the SOQL_TEMPLATE by master ids (extracted from the child
records passed in)
- Fixed field alias issue with large fields
- Fixed issue when there are no detail records, zeros or nulls the
rollup field