Added selfcheck method for integers.
Added selfcheck for float and string and removed old reference implementation.