fix bug in syn.uploadFile

...which failed when given a dictionary representing a new entity and added test