Fix partial_range.h for gcc 4.5
Fix serial::pad for gcc 4.5