fix typehinting behavior; allow method body printing