Modified the toolkit array functions to also accept associative arrays.
Standardized capitalization in toolkit error messages.
Added unit tests to exception.d and result.d.