adds support for integer attribute type

+ fixes #36