Add references to parent Builder/Reader objects to prevent segfaults.