Added function to remove a value from an array.

example use case: Removing needlessly verbose views and panels classes that we probably shouldn't be using for theming anyway.