Created functional version of syncCollection method.
	This allows the caller to specify custom code to run when adding or removing an element.
	^bbf-8 Fixed