Fixed bug in TransactionCommand that caused the whole system to freeze due to
type semaphores not being released when an exception occurs. Modified name of
GraphObject callbacks to be more precise: beforeCreation => onCreation etc.