fix bug in EntityFactory which caused entities to be added to nirvana
allow arbitrary lineWidth for curved connections
added arrange2D