Fixed incorrect signed/unsigned read integer methods in input stream.