merge: let _resolvetrivial() work on the file->action dict
By moving the conversion from the file->action dict after
_resolvetrivial(), we greatly simplify and clarify that method.
................----------------------------------------------------------------------Ran 16 tests in 0.000sOK