Added getDomain() to entitylocator

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed clause mapping with arrays

Signed-off-by: Tom Wright <tom@inflatablecookie.com>