Adapt FractionPrinter

Change-Id: Ic297f14ea1bf5f3fa69c80a34439b5d13fc84346