acpi: calculate size of a datarefobject

Fixes #415