Better escape handling.

Moved array handling from prepare() to escape().
More documentation.