Bug fixes.

Register returns unit ans scaler as Uint8.