Fix various graph/series options issues

 * Fix series options apply when editing graphs
 * Fix missing options in plots API responses
 * Prevent empty arrays from being print in HTML options attributes