Cleaned up sliceBits() and null value parsing