Small fix for byte field encoding issue
Fix missing code in some loops
Fix get_source and get_source_ext so that they can be called more than once
Merge pull request #14 from google/fix_get_source2

Fix get_source and get_source_ext so that they can be called more than once