fixes + added option to pass array in attribute

use-case for array attributes: setting up html "data-X" attributes for javascript use