Includes before/after state in command #toString() methods

where applicable, namely nodes and properties