Fixed previous commit to use a more gentle approach on exception

Fixed namespacing issues for the array exception and used string
casting instead of raising an exception for tags