Fix potential memory corruption problem, that could cause crashes on some systems.
Change AttributeStorage to use statically allocated memory.