Renderblock ScriptTag fixes.

Add proper schema information and throw correct exception when targetField is not set.