Implement several condition formula elements

Conflicts:
	RptToXml/RptDefinitionWriter.cs

Closes #8