Bugfix: correctly support isset on referenced objects.
Bugfix: correctly prevent multiple loading of referenced objects.
Add PDF method to invoice object to retrieve PDF document.
Bugfix: raise error when calling load with no arguments or an empty ID.