fix hasAttribute on dataset (fixes #7)