Add array dependencies to Translator functions

The $replace array throughout the Translator functions eventually ends up as an argument for a new Collection class which has this as a dependency. We should make sure it's an array that's being passed before continuing with any of these functions.

Signed-off-by: Dries Vints <dries.vints@gmail.com>
Various documentation fixes

Signed-off-by: Dries Vints <dries.vints@gmail.com>
Fix spacing and property assignment sequence

No need for crazy spacing and property assignment is from shortest to longest.

Signed-off-by: Dries Vints <dries.vints@gmail.com>
Merge branch '4.0'