Fixed some issues with vector sizes, tested attribute write