wpilib.OnboardIMU should be a component. However, its constructor does not take a port. It takes a wpilib.OnboardIMU.MountOrientation.
Our component code currently assumes that a component constructor takes one or more ports. We need to handle this case where the constructor parameter is a wpilib.OnboardIMU.MountOrientation.