[server][ItemData] Remove inline qualifier and move implementation to .cc file.

The cast operators are virtual functions. So the effect of 'inline'
is considered to be very few.