Linear and Radial Gradient are now Serializable (#14161)

Added the interface to both static inner classes.
Imported test that checks that classes are serializable.

Change-Id: Ic6c69724a54ceb527b891f5331b247f65e848fe1