Added ValidateType() and minor code style fixes.
Added ValidateType() and minor code style fixes.

moritz/otrs,thorsteneckel/otrs,s7design/otrs,noritnk/otrs,rudy500/otrs,mbeijen/otrs-1,noritnk/otrs,PortgasDAce/otrs,linearregression/otrs,capeit-tto/otrs,mburggraf/otrs,capeit-tto/otrs,vlascoder/otrs,xhoy/otrs,oiami/otrs,mburggraf/otrs,StCyr/otrs,brandonshults01/otrs,nilei/otrs,capeit-tto/otrs,thorsteneckel/otrs,rudy500/otrs,linearregression/otrs,thorsteneckel/otrs,xhoy/otrs,rudy500/otrs,StCyr/otrs,rudy500/otrs,MBRG/otrs,oiami/otrs,xhoy/otrs,s7design/otrs,crythias/otrs,PortgasDAce/otrs,s7design/otrs,mbeijen/otrs-1,crythias/otrs,muehlbauer/otrs,MBRG/otrs,vlascoder/otrs,crythias/otrs,crythias/otrs,MBRG/otrs,balazj/otrs,moritz/otrs,balazj/otrs,nilei/otrs,noritnk/otrs,oiami/otrs,linearregression/otrs,muehlbauer/otrs,oiami/otrs,thorsteneckel/otrs,balazj/otrs,StCyr/otrs,s7design/otrs,MBRG/otrs,StCyr/otrs,PortgasDAce/otrs,brandonshults01/otrs,mburggraf/otrs,eliasp/otrs,MBRG/otrs,eliasp/otrs,brandonshults01/otrs,eliasp/otrs,vlascoder/otrs,balazj/otrs,thorsteneckel/otrs,muehlbauer/otrs,muehlbauer/otrs,muehlbauer/otrs,StCyr/otrs,nilei/otrs,nilei/otrs,PortgasDAce/otrs,xhoy/otrs,nilei/otrs,mburggraf/otrs,mbeijen/otrs-1,rudy500/otrs,balazj/otrs,oiami/otrs,moritz/otrs,brandonshults01/otrs,mburggraf/otrs,eliasp/otrs,crythias/otrs,linearregression/otrs,moritz/otrs,moritz/otrs,linearregression/otrs,xhoy/otrs,PortgasDAce/otrs,eliasp/otrs,s7design/otrs,brandonshults01/otrs