Implemented `SerialNumberGenerator` class and used it to add support for
automatic observation number generation to `HmmcCommandInterpreter101`
class.