ResolutionUnit type definition is incorrect. Parser returns it as number (as it should), and it is defined as string here.
ResolutionUnit