Rewrote finalizer. Finalizer unit tests was hopelessly not working - not adapted to async code. Finalizer now throws errors if type and types type is incorrect. SchemaErrors are thrown on schema errors - with a schema property to know where it is malformed. Finalizer now takes fully care of schema errors.