Fix 'Illegal string offset' and Pass by Reference notices. See #13.