Make sure we parse time and sequence number as integers

Previously we were parsing both time and sequence number as floats. This
could lead to loosing precision. This patch tries to parse these two
fields as integers and falls back to parse them as floats.