Renamed block behavior->internals, implement block serialization.