Td array format

This is an extension of PR #141 which adds a simplified way of defining array based time-dependent hamiltonians and collapse operators.