Fix for array to string error in setFromPost()

$contenttype is an array, we only want the 'slug' key.
Merge pull request #1703 from GawainLynch/hotfix/setFromPost

Fix for array to string error in setFromPost()