Add scalar comparison methods to Parameter

- Define __float__, __int__, __lt__, __gt__, __le__, __ge__, __eq__ and
  __ne__ for Parameter, which work for scalar (i.e. 0-dimensional)
  parameters.